package io.kiki.task.server.job.task.support.result.job;

import io.kiki.task.common.core.enums.JobTaskTypeEnum;
import io.kiki.task.template.datasource.persistence.mapper.GroupConfigMapper;
import io.kiki.task.template.datasource.persistence.mapper.JobTaskBatchMapper;
import io.kiki.task.template.datasource.persistence.mapper.JobTaskMapper;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

@Slf4j
@Component
public class MapJobExecutorHandler extends AbstractJobExecutorResultHandler {

    public MapJobExecutorHandler(
            final JobTaskMapper jobTaskMapper,
            final JobTaskBatchMapper jobTaskBatchMapper,

            final GroupConfigMapper groupConfigMapper) {
        super(jobTaskMapper, jobTaskBatchMapper, groupConfigMapper);
    }

    @Override
    public JobTaskTypeEnum getTaskInstanceType() {
        return JobTaskTypeEnum.MAP;
    }

    @Override
    protected void doHandleSuccess(final JobExecutorResultContext context) {
    }

    @Override
    protected void doHandleStop(final JobExecutorResultContext context) {

    }

    @Override
    protected void doHandleFail(final JobExecutorResultContext context) {

    }

}
